Repository navigation
own: a value pushed where not null; literal unions as views; moves on every path; constant literal globals (TSLANG 67-70); string literal union type check - #855
Merged
Conversation
…string literals read as a string (TSLANG 67, 68) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…or a string given to it is an error (TS2322, TS2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on error tests are errors by design for the verifier Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… type: `private flags = ""` is a string Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 69) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at keeps it (TSLANG 70) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
DefaultLib ctest: 100% tests passed, 0 tests failed out of 7331 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes from the
-mm=ownsweep of native_ts_graphics (TSLANG 67-70, written up in TSLANG_ISSUES.md), plus a type check for unions of string literals.-mm=own
if (x) arr.push(x); use(x)) is read back from the array on the pushed path and is null on the other.Type checking
"no" | "yes") takes only its literals. Another literal, or astring, given to it is an error (TS2322 for assignments and declarations, TS2345 for arguments).private flags = "") has the default's widened type (string), as in TS. DefaultLib's RegExp depends on this.Tests
00tslang_issue_67,00tslang_issue_69.assign_string_literal_union_errorassign_string_to_literal_union_errorargument_string_literal_union_errorown_err_pushed_or_null_poppedown_err_moved_on_two_of_three_pathsValidation
tests.ps1: all four models passed. Results are in a comment.🤖 Generated with Claude Code